<#macro body title='' publish='' index='' category='' file='' link=''  setting='' comment=''>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>
	<#if title == ''>
	${blog.getOption('blog_name')}
	<#else>
	${title}
	</#if>
</title>
<link rel="stylesheet" type="text/css" href="/admin/style.css">
</head>
<body>
	<div class="wrapper">
		<h1 class="logo"><a href="/">${blog.getOption('blog_name')}</a> 管理</h1>
		<p class="txt_right">欢迎您, <strong>${admin.name}</strong>  <span class="v_line"> | </span> <a href="/login/out"> Logout</a></p>
		
		<!-- Navigation -->
		<div class="navigation">
			<ul>
				<li><a href="/admin/index" class="${index}">所有文章</a></li>
				<li><a href="/admin/comment" class="${comment}">评论留言</a></li>
				<li><a href="/admin/post" class="${publish}">发布博文</a></li>
				<li><a href="/admin/category" class="${category}">分类目录</a></li>
				<li><a href="/admin/file" class="${file}">文件管理</a></li>
				<li><a href="/admin/link" class="${link}">友情链接</a></li>
				<li><a href="/admin/setting" class="${setting}">博客设置</a></li>
			</ul>
		
			<div id="searchform">
				<form method="post" action="/admin/index">
				<input type="text" placeholder="快速搜索..." class="search_box" name="keywords">
				<input type="submit" class="search_btn" value="SEARCH">
				</form>
			</div>
		</div>
		
		<div class="clear"></div>
	
		<div class="content">
			<#nested>
		</div>
		<p class="footer"><a href="http://www.ponxu.com" target="_blank">LOVE Miniblog4j</a> <span class="v_line"> |</span> <a href="/login/out">LOGOUT</a></p>
	</div>
</body>
</html>
</#macro>

<#macro repeat count>
	<#if (count>0)>
		<#list 1..count as x>  
			<#nested>
		</#list>
	</#if>
</#macro>